package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-06-07
 */
@TableName("invitation_comment")
@Data
public class InvitationComment extends Model<InvitationComment> {
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @ApiModelProperty(value = "评论ID", hidden = true)
    @TableId("comment_id")
    private Long commentId;
    /**
     * 评论的父评论ID
     */
    @ApiModelProperty("评论的父评论ID")
    @TableField("comment_pid")
    private Long commentPid;
    /**
     * 邀请函ID
     */
    @ApiModelProperty("邀请函ID")
    @TableField("invitation_id")
    private Long invitationId;
    /**
     * 评论的用户ID
     */
    @ApiModelProperty("评论的用户ID")
    @TableField("user_id")
    private Long userId;
    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间", hidden = true)
    @TableField("comment_time")
    private Long commentTime;
    /**
     * 评论内容
     */
    @ApiModelProperty("评论内容")
    @TableField("comment_content")
    private String commentContent;
    /**
     * 点赞个数
     */
    @ApiModelProperty(value = "点赞个数", hidden = true)
    @TableField("thumbs_count")
    private Integer thumbsCount;
    /**
     * 回复的个数
     */
    @ApiModelProperty(value = "回复的个数", hidden = true)
    @TableField("reply_count")
    private Integer replyCount;

    @Override
    protected Serializable pkVal() {
        return this.commentId;
    }
}